﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace cludg.Services.Security.Permissions
{
	using Domain.Users;
	using Domain.Content;

	public class AuthorPermission : Permission
	{
		public override bool UserHasPermission(User user, IContent content)
		{
			return (content != null) && (user.Id == content.Author.Id);
		}
	}
}
